updated user helper functions and fixed create user