add the reg and login feature