made user logins work