fixed bug with trying to view users with empty drop down list, added javascript to check for test if before sending POST.
tidied up code, removed diagnostics references and commands
added sql method to get allowed times, added code to show allowed time on the entry screen. added .trim() method on the entry screen inscase user puts spacres at the start or end of key.