Added login screen and fixed random number generation