added function for pay rate prompt to check validation of input