Add model login

Andrew I'm not sure what made correctly. Check please.