fixes user registration

Still need to find out where the user validation function went

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>