bugfix for user register