loggin and register new user works without errors