Fix bug when adding new user
Format code and add gitignore