with validation of user login