created login, logout functionality