Fix add user funciton

now the admin_level and user_level are separate and add user  will
correctly detect and add them into different tables.