finished the basic login securtiy mechanics.