Implementation of user related functionality