implemented simple login logout technique in ui