Add check if the signup setting is enabled. fixes #4832
Created by: perryfaro
This pull request will fix issue #4832
The sign up link was shown on the reset password page even when this setting was disabled.
This is also my first pull request, if I did something wrong please let me know.