Chapter4 Example5: simplified LoginController declaration