added login, register and manage