code written for Forgot and reset Password