Create login and logout without database functions