Adding validation to the authentication page.