added logic for using green forms in login