Implement login controller