you need to set the flag say "AccountStatus" (0, 1 where 0 represents the deactivated account and 1 represents the account is activated) in database. initially for admin it should be 1 and for other users it should be 0.
At the time of login you need for check the "AccountStatus" field value, If "AccountStatus" is 1 then only user can able to login.
Once the admin logs in, you can update the "AccountStatus" flag for other users to 1 by running the update query just after the success message or before the next page loads completely or you can give the option to admin to activate the selected user's account.
Now its upto you, which way you want to do.
I hope this will solve your problem.
Thanks