Moved randomString to Authentication.php