Added functions to check availability and limit logins based on date.  Fixed resend confirmation for investigator.