Web login - Retain remember me option

When attempting to log in using this snippet, if entering an incorrect login combination the 'remember me' checkbox selection is not retained if set.