fixes bug in registration form, thanks @Zen00