implemented REST service and added salt to the password.