Get user last login

Get user last login

1. Is there a way to programmatically get the last user login to trigger certain workflows?
2. Is there a way to programmatically access the custom fields on a user's account?