Add required method to login

While I'm here handle login signal and last_login field.