Option to lockdown user registration

Originally based off #356