add login  to main