System_messages & Login Form Design Area

Hi all,


Just trying to do up a login form design area. Just a couple of possibly related questions:



[list=1]

  • Is there a way to conditionally wrap the system_messages var in a <p> when it's present?
    [*]I want to put a class on the page when the login fails so that I can adjust the style accordingly. Is there a way of detecting if there's a system_messages error that needs attention?


    Had a look at the login form design area, but I'm not sure. Will the logical condition help here?

    Thanks in advance for any help.