logout feature and entry details out of database