Add login method and dashboard view.