added login_validation pseudocode