fix registration when not allowed

The view was the only place where was checked if registration was
disabled. Sending post data would still register a new user.