added logout and conditional views for user account