Adding extra validation for authentication objects