added necessary json.loads for password reset bug