Working API and login screen