functional logincontroller