Fixed logging in after creating new user