added POST data validation to user registration logic
POST data validation in user registraion API