renamed function for get_user
Added the auto create user logic