Made another fix to go up directory issue, added model validation/disallowed entering empty directories