Modified the user class to account for the home directory possibly missing.