added scripts to display/hide the reg and log in fields depending on whether the user has logged in before. Datepicker was moved to another seperate file.