Registration form shows although user registration is turned off in WordPress.

Registration form shouldn't show if user registration is turned off in WordPress, this commit fixes that bug.