Login validation methods updated