Complete author login authentication in controler