Finished login check and insert