Deleted the panning when adding a new layer; Login can be finished by pressing enter