Or a more JSF-like way to do it would be to bind your loginError and error values into a backing bean in the faces-config and then use <h:messages /> and generate a message depending on whether or not loginError is null:
Those are the largest trousers in the world! Especially when next to this ad:
a bit of art, as a gift, the permaculture playing cards