Need utf-8 here
Do not show registration form in case email registration is disabled
Simplify code