Fixing bugs

In registration