added login activity and register activity