add few login logic