added controlers for login