added in random class and also added the reset password function