Added Custom Auth support, login and register user.