Add options for disabling user registration and password recovery, #680