Adding new user and editing with proper validation.