Login, logout, and register working