connecting main to login
connect main to login