login, register, logout functionality added