Updates to login process