Added auto login when registering new user