Added api_key unique validation and attr for api salt