added base for login logic