user registration
fix bug in validation