Add validation to Authentication