the loginActivity stores the credentials and shows the mainActivity