added login activity and main activity