added salt, fixed cookie error
cleaned up shit