Saves userId to session on successful login.