Corrected login procedure to deal with changing button classes