Deny access to the registration if it has been disabled in the preferences

https://github.com/ironAss/PhotoShow/commit/00b60f507d076a798a0491ace01e55afe6954af7