Adds options and login and logout