templates login and register fix (messages)