minor changes to validate user