fixed bug to create user directory