Create User table and bug fix