Updated registration process: added password encoding +
username/password check + HTTP status response