for new login logic