Fixed error in GetUser() method. Added function to create directory.