built functionality for resetPassword and added stacktraces to sendError