added wait function to sleep until page loads, and random string function for creating user name stuff