home controll
add error message and logout