add login to main