Check Login

started checking login activity. defined basic variables