Snippets for realise of registration/authorisation in MODX Revolution