Made changes to Login controller