added salt to db and authenticate method