fixed user validation errors
added activation and deactivation functions