added functions to user management