go from login to main to login to main works