fixed #159 user registration