Fixed response codes/JSON msg for '/changePassword' API

Different way of responding to requests was causing log glitches.
Also, was previously sending status code 400 instead of 500.