testing controller for login