Fixed box centering, moved login check