home page working but not the login api