Refactoring forgot password page and its related controller