fixed empty user registration