code cleaning done

logout issue fixed
Exception created