Added login controller
Extracted successLoginHandler