Creates password reset method