Added isapproved check for validateuser