changed login/logout buttons to a padlock, removed unused controller code