register creates new user, login and logout not yet working