Add check if the signup setting is enabled. fixes #4832

This pull request will fix issue #4832

The sign up link was shown on the reset password page even when this setting was disabled.