Add the login logic and menu items