Update validation function to register activity
Clean project