add login name for auth type
merge all login methods
delete unused codes
add smtp authentication