add login view
define email functions