Added extra one-stop login and validate functions