Implementing logincontroller