Load the login activity first and if you have credentials, then open main activity
Add login activity and layout