add logout feature. Fix enter breaks form