Modifications for login