Security scan finding on forgot password funtionality.

Fixes forgot password functionality to prevent automated bots or to slow down humans who attempt to spam email inboxes.