initial stage for login and main