converting login view to use markup template