You need to check all online users and see if admin is logged-in or not.
With this plugin you can get all online users.
https://wordpress.org/plugins/wp-useronline/
Can use a function to check if list includes admin or not.
Based on that you can display forms.