Not returning user object after creation and other minor corrections