added weekday validation function