This now checks to see if user exists, if not, it registers them, if so, it logs them in