Change the init function in order to show the login or logout menu