finishing forgot password function