fixes forgot password functionality in non-dev mode