added Reg Login Logout AutoLogin funcation, but still need protent test