Changes to add password field
Changes to send JSON response