adds checks for sign_in/up modals