Fix some problems with login field.