Hi ,
The passwd and usernm should be different from 'spice' and 'sugar' respectively for the error to show ( the
both the usernm and passwd should change together from their values then only it shall error) in accordance to the post
if (($usernm ne 'sugar') || ($passwd ne 'spice')){
print " the error of authorization \n";
#.......
}
this shall be like the usernm should be sugar and the passwd should be spice, if
either one changes the error is shown