Updating user creation and login to deal with new permission table