HotSpot autologin code?

Hi,
I am trying to create a HotSpot wit ha mikrotik 951 2n. The client needs to have a slideshow of pictures as advertising on the front page with a small button on the upper left corner that is a gate to the open internet. Seems easy, but he doesnt want users to have to input login credentials themselves. He wants the button (Continue to Internet) to do that for them so its easier to do from phone/tables and etc.This means I am using a custom made login.html which currently looks like this (for the button part):

Continue to Internet
Test

$(function() { $(submit).click(function(e) { $(login).submit(); e.preventDefault(); }); }); I have changed the settings to (Trial) only without HTTP CHAP. The first row (Continue to Internet) is the one I tried to input with plain text user/password - guest/guest to try to login the users automatically and be redirected to a certain page or the page they entered - it doesnt work. The second row is the Trial option, which I thought would work and create a session for every user separately without the need of credentials. P.S. I am totally new to this HotSpot thingy, I have no idea how it should work so please be patient. IF needed I will attach a screenshot how it looks right now if it will give a better expression whats on my mind.
<form name="sendin" action="$(link-login-only)" method="post">
<input type="hidden" name="username" />
<input type="hidden" name="password" />
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="false" />
</form>
<script type="text/javascript" src="/md5.js"></script>
<script type="text/javascript">
<!--
function doLogin() {
 document.sendin.username.value = document.login.username.value;
 document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
 document.sendin.submit();
 return false;
}
//-->
</script>
<form name="login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit="return doLogin()" $(endif)>
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="false" />
<input type="hidden" name="username" value="guest"/>
<input type="hidden" name="password" value="guest"/>
<input type="submit" value="Continue to Internet" />
</form>

Thank you kind person!