renamed main to login