models, associations and basic login