Fixed registering and login support