Email address is now used as the id in the database. Added a function to replace a period with a comma for the email address since it is not allowed in a Firebase url