error warnings for edit function
add portal login