Login and register support. missing logout.