Implementation of custom user model according to django docs.