added login, register and retrieve password support