Check login is not null to avoid null pointer during some calls