Added function to check if the token is correct. This can be called before loading the password reset page. This merely checks if the token exists in the 'password_reminders' table.
Remove the token entry from the 'password_reminders' table when the password change is successful.