Joomla 1.0.10 custom login module problems

After upgrading to 1.0.10 i had to notice that a custom loging module that i designed for a joomla solution stopped working.
For newly registered users i got a nasty Javascript alert featuring: "You are not authorised to view this resource!"
(For developers it's a plain mosErrorAlert( _NOT_AUTH ); )
 
Ok, the issue here is the new security measure Joomla team added tha function: josSpoofCheck, whitch performs several checks for ip spoofing and injections.
 
In order your login module to work you need to add a " $validate = josSpoofValue(1); " to your PHP code before the output of the form , and a hidden input in the loginform :
<input type="hidden" value="1" name="<?php echo $validate; ?>" />
 
There you go ;) now it should work!