Added login and register, also added the menu loop and controller