Changing to only allow login submission if not locked, but always displays form