fixxed bug with user registration