implement login page and conditional menubar