simplified login and logout process and messaging to not use ajax