Code clean up, and tweak permissions on login, register and unsubscribe