Re-factored forgot password part