Made login and leave messages customising optional