Fixed login form rand code