Fix display and login issues

Also, exit when pressing logout button