add login for user controller