Refactored setSessionForUser; waiting for userIdGetByUsernameAndPassword