Add the login dialog

Signed-off-by: Ezio Yan <126ium@gmail.com>