Updated the custom user model to use PermissionsMixin. Upldated default login and register templates.