Add sigin and signout feature to UI as well as backend