Updates to authenticaiton code

Hi Lily

I updated some of your authentication code - just some minor changes.  Let me know if you have any questions!