Add Log In, Log Out, Register, Profile Edit logic