validating user data and forms