Added automatically login

Added automatically login.