refactoring for user adding but problem with variables and home directory adding need to fix