Adding login functions to the menu