Created a login screen and fetching data from the server